#include <stdio.h>
#include <string.h>

int main()
{
    // int num = 1;
    // int len = sizeof(int);
    // printf("(int)len = %d\n",len);

    // short num = 1;
    // int len = sizeof(short);
    // printf("(short)len = %d\n",len);

    // long num = 1;
    // int len = sizeof(long);
    // printf("(long)len = %d\n",len);

    // double num = 1;
    // int len = sizeof(double);
    // printf("(double)len = %d\n",len);

    // long long num = 1;
    // int len = sizeof(long long);
    // printf("(long long)len = %d\n",len);

    // float num = 1;
    // int len = sizeof(float);
    // printf("(float)len = %d\n",len);

    printf("int = %ld\n", sizeof(int));
    printf("short = %ld\n", sizeof(short));
    printf("long = %ld\n", sizeof(long));
    printf("long long = %ld\n", sizeof(long long));
    printf("double = %ld\n", sizeof(double));
    printf("float = %ld\n", sizeof(float));
    printf("char = %ld\n", sizeof(char));

    printf("int* = %ld\n", sizeof(int*));
    printf("short* = %ld\n", sizeof(short*));
    printf("long* = %ld\n", sizeof(long*));
    printf("long long* = %ld\n", sizeof(long long*));
    printf("double* = %ld\n", sizeof(double*));
    printf("float* = %ld\n", sizeof(float*));
    printf("char* = %ld\n", sizeof(char*));

    int array_int[100];
    char src[100] = "hello";//char src[100] = {'h','e','l','l','o','\0};


    printf("array_int = %ld\n",sizeof(array_int));
    printf("array_char = %ld\n",sizeof(src));

    char *ptr = "hello world";

    printf("sizeof(ptr) = %ld\n",sizeof(ptr));
    printf("strlen(ptr) = %ld\n",strlen(ptr));
    printf("strlen(\"hello world\") = %ld\n",strlen("hello world"));





    return 0;
}